#include "TransformComponent.h"

const ComponentType TransformComponent::m_ComponentType = "TransformComponent";
const ComponentType TransformComponent::m_BaseComponentType = "BaseTransformComponent";

void TransformComponent::Translate(const Vec3 & dir)
{
	m_ToWorld.SetPosition(m_ToWorld.Xform(dir));
	//fire an event. Transfom component modified;
	REE()->VTriggerEvent(EventDataPtr(RE_NEW EventData_ActorComponentModified(this)));
}